package cn.gok.day6.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("clazz")
public class Clazz implements Serializable {
    private static final long serialVersionUID=1L;
    @TableId(value = "cid", type = IdType.INPUT)
    private Long cid;
    private  String cname;
    @Version
    private Integer version;
    @TableLogic
    private Integer delted;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

}
